<!-- 侧边栏公共模板 -->
<nav class="sidebar" id="sidebar">
    <div class="p-3">
        <h5 class="text-white text-center">
            <i class="bi bi-heart-pulse me-2"></i>管理后台
        </h5>
        <hr class="text-white-50">
    </div>
    <ul class="nav flex-column">
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'dashboard' else '' }}" href="{{ url_for('main.admin_dashboard') }}">
                <i class="bi bi-speedometer2 me-2"></i>仪表板
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'users' else '' }}" href="{{ url_for('main.admin_users') }}">
                <i class="bi bi-people me-2"></i>用户管理
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'scales' else '' }}" href="{{ url_for('main.admin_scales') }}">
                <i class="bi bi-clipboard-data me-2"></i>量表管理
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'member_publications' else '' }}" href="{{ url_for('main.admin_member_publications') }}">
                <i class="bi bi-share me-2"></i>会员发布管理
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'assessments' else '' }}" href="{{ url_for('main.admin_assessments') }}">
                <i class="bi bi-file-text me-2"></i>测评记录
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'analytics' else '' }}" href="#">
                <i class="bi bi-graph-up me-2"></i>数据分析
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'members' else '' }}" href="{{ url_for('main.admin_members') }}">
                <i class="bi bi-star me-2"></i>会员管理
            </a>
        </li>
        <li class="nav-item">
            <a class="nav-link {{ 'active' if active_page == 'system' else '' }}" href="#">
                <i class="bi bi-gear me-2"></i>系统设置
            </a>
        </li>
        <li class="nav-item mt-3">
            <hr class="text-white-50">
        </li>
        <li class="nav-item">
            <a class="nav-link" href="{{ url_for('main.index') }}">
                <i class="bi bi-house me-2"></i>返回首页
            </a>
        </li>
        <!-- 移除退出登录功能 -->
        <!-- <li class="nav-item">
            <a class="nav-link" href="#">
                <i class="bi bi-box-arrow-right me-2"></i>退出登录
            </a>
        </li> -->
    </ul>
</nav>